﻿using System;
using System.Collections.Generic;
using System.Text;
using IotS.Core.Helpers.Settings;
using Microsoft.Extensions.Configuration;

namespace IotS.Core.Helpers
{
    public class ConfigHelper
    {
        private static IConfigurationRoot Configuration;

        public static void Set(IConfigurationRoot configuration)
        {
            Configuration = configuration;
        }

        public static IotSettings Settings => Configuration.Get<IotSettings>();
    }
}
